package com.zt.csp.shorturl.entity;

import com.ecfront.dew.common.$;

import java.io.Serializable;
import java.util.Date;

/**
 * 访问日志数据实体类
 * Created by zt on 2018/4/27 0027
 */
public class ViewLog implements Serializable {

    /**
     * 日志ID
     */
    private Long id;

    /**
     * 访问IP
     */
    private String reqIp;

    /**
     * 访问时间
     */
    private Date reqTime;

    /**
     * 访问运营商
     */
    private String reqIsp;

    /**
     * 城市
     */
    private String reqCity;

    /**
     * 城市ID
     */
    private String reqCityId;

    /**
     * 访问省份
     */
    private String reqRegion;

    /**
     * 省份ID
     */
    private String reqRegionId;

    /**
     * 访问国家
     */
    private String reqCountry;

    /**
     * 国家ID
     */
    private String reqCountryId;

    /**
     * 访问区域
     */
    private String reqArea;

    /**
     * 访问的Code
     */
    private String reqShortCode;

    /**
     * 访问的ID
     */
    private Long reqShortId;

    /**
     * 访问状态 0-正常 1-过期无法访问 2-被删除无法访问 3-达到最大次数无法访问
     */
    private int reqStatus;

    /**
     * 访问信息
     */
    private String reqMessage;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getReqIp() {
        return reqIp;
    }

    public void setReqIp(String reqIp) {
        this.reqIp = reqIp;
    }

    public Date getReqTime() {
        return reqTime;
    }

    public void setReqTime(Date reqTime) {
        this.reqTime = reqTime;
    }

    public String getReqIsp() {
        return reqIsp;
    }

    public void setReqIsp(String reqIsp) {
        this.reqIsp = reqIsp;
    }

    public String getReqCity() {
        return reqCity;
    }

    public void setReqCity(String reqCity) {
        this.reqCity = reqCity;
    }

    public String getReqCityId() {
        return reqCityId;
    }

    public void setReqCityId(String reqCityId) {
        this.reqCityId = reqCityId;
    }

    public String getReqRegion() {
        return reqRegion;
    }

    public void setReqRegion(String reqRegion) {
        this.reqRegion = reqRegion;
    }

    public String getReqRegionId() {
        return reqRegionId;
    }

    public void setReqRegionId(String reqRegionId) {
        this.reqRegionId = reqRegionId;
    }

    public String getReqCountry() {
        return reqCountry;
    }

    public void setReqCountry(String reqCountry) {
        this.reqCountry = reqCountry;
    }

    public String getReqCountryId() {
        return reqCountryId;
    }

    public void setReqCountryId(String reqCountryId) {
        this.reqCountryId = reqCountryId;
    }

    public String getReqArea() {
        return reqArea;
    }

    public void setReqArea(String reqArea) {
        this.reqArea = reqArea;
    }

    public String getReqShortCode() {
        return reqShortCode;
    }

    public void setReqShortCode(String reqShortCode) {
        this.reqShortCode = reqShortCode;
    }

    public Long getReqShortId() {
        return reqShortId;
    }

    public void setReqShortId(Long reqShortId) {
        this.reqShortId = reqShortId;
    }

    public int getReqStatus() {
        return reqStatus;
    }

    public void setReqStatus(int reqStatus) {
        this.reqStatus = reqStatus;
    }

    public String getReqMessage() {
        return reqMessage;
    }

    public void setReqMessage(String reqMessage) {
        this.reqMessage = reqMessage;
    }


    @Override
    public String toString() {
        return $.json.toJsonString(this);
    }
}
